<template>
    <div>
        <el-page-header @back="goBack" content="图像识别结果手动修改" title="返回"></el-page-header>
        {{form}}
        <el-form ref="form" :model="form" label-width="80px" size="small">
            <el-form-item label="识别结果"><el-input v-model="form.comment" ></el-input></el-form-item>
            <el-form-item>
                <div style="text-align:right">
                    <el-button type="primary" @click="submitHandler">提交</el-button>
                </div>
            </el-form-item>
        </el-form>
    </div>
</template>

<script>
import { post } from '@/utils/request'
export default {
    data(){
        return{
            form:{}
        }
    },
    

    methods: {
        submitHandler(){
            let url= "http://localhost:8888/callLog/saveOrUpdate"
            post(url,this.form).then(resp => {
                //提示
                this.$message({
                    type:'success',
                    message:resp.message
                })
                this.goBack()

            })
        },


        goBack() {
        this.$router.go(-1)
      }
    },

    created(){
        this.form= this.$route.query;
    }


}
</script>

<style lang="sass" scoped>

</style>